package com.xinzhidi.web.house.domain.dto;

import com.xinzhidi.common.annotation.Excel;
import com.xinzhidi.web.build.domain.CBuild;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;


/**
 * 住户AddDto对象 c_household
 *
 * @author cx
 * @date 2023-05-23
 */
@ApiModel(value = "住户对象")
@Data
@EqualsAndHashCode(callSuper = false)
public class HouseholdAddDto {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "小区id")
    @NotNull(message = "小区id不能为空")
    @Min(value = 0, message = "小区id不能比0小")
    private Long plotId;

    @ApiModelProperty(value = "楼栋id")
    @NotNull(message = "楼栋id不能为空")
    @Min(value = 0, message = "楼栋id不能比0小")
    private Long buildId;

    @ApiModelProperty(value = "单元号")
    @NotNull(message = "单元号不能为空")
    @Min(value = 0, message = "单元号不能比0小")
    private Long unit;

    @ApiModelProperty(value = "楼层号")
    @NotNull(message = "楼层号不能为空")
    @Min(value = 0, message = "楼层号不能比0小")
    private Long floor;

    @ApiModelProperty(value = "门牌号")
    @NotBlank(message = "门牌号不能为空")
    @Size(max = 100, message = "门牌号长度不能大于100")
    private String houseNumber;

    @ApiModelProperty(value = "方位")
    @NotBlank(message = "方位不能为空")
    @Size(max = 100, message = "方位长度不能大于100")
    private String orientation;

    @ApiModelProperty(value = "管道位置")
    @NotBlank(message = "管道位置不能为空")
    @Size(max = 100, message = "管道位置长度不能大于100")
    private String pipePosition;

    @ApiModelProperty(value = "采暖面积")
    private BigDecimal heatArea;

    @ApiModelProperty(value = "房间热卡号")
    @Size(max = 100, message = "房间热卡号长度不能大于100")
    private String hotCardNumber;

    @ApiModelProperty(value = "住户姓名")
    @Size(max = 100, message = "住户姓名长度不能大于100")
    private String userName;

    @ApiModelProperty(value = "固定电话")
    @Size(max = 100, message = "固定电话长度不能大于100")
    private String landPhone;

    @ApiModelProperty(value = "移动电话")
    @Size(max = 100, message = "移动电话长度不能大于100")
    private String mobilePhone;

    @ApiModelProperty(value = "供热类型")
    @Size(max = 100, message = "供热类型长度不能大于100")
    private String heatingType;

    @ApiModelProperty(value = "邮箱")
    @Size(max = 100, message = "邮箱长度不能大于100")
    private String email;

    /**
     * 楼栋信息
     */
    private List<CBuild> cBuildList;

    @ApiModelProperty(value = "是否供热（0是 1否）")
    @Excel(name = "是否供热")
    private Long heatingOrNot;

    @ApiModelProperty(value = "模型id")
//    @NotEmpty(message = "模型不能为空")
    private String modelIds;

    @ApiModelProperty(value = "用户类型")
    private String type;

}
